package org.example.ch05;

/**
 * @author yang
 * @date 2024-03-20
 */
public class TestMain {
    public static void main(String[] args){
        int number = 20;
        MyThread mt1 = new MyThread(number);
        MyThread mt2 = new MyThread(number);
        MyThread mt3 = new MyThread(number);

        mt1.setName("张三");
        mt2.setName("李四");
        mt3.setName("王五");

        mt1.start();
        mt2.start();
        mt3.start();
    }
}
